#include<bits/stdc++.h>
using namespace std;

int main()
{
	int n, sum = 0;
	cin>>n;
	int a[] = {n/1000, n/100%10, n/10%10, n%10};
	cout<<"result=";
	cout<<a[0]<<"+"<<a[1]<<"+"<<a[2]<<"+"<<a[3]<<"="<<a[0]+a[1]+a[2]+a[3];
    return 0;
}

